#!/bin/bash
while true; do

  adb shell echo "------------------------------------------------" >> ram.txt
  adb shell date "+%Y-%m-%d-%H:%M:%S" >> ram.txt
  adb shell dumpsys meminfo com.aispeech.lyra.daemon >> ram.txt
  sleep 5
done